package com.matt.service.care.impl;


import com.matt.domain.care.HLDailyRecord;
import com.matt.domain.care.HLFeedingRecord;
import com.matt.foundation.utils.CopyUtils;
import com.matt.repository.care.HLDailyRecordRepository;
import com.matt.repository.care.HLFeedingRecordRepository;
import com.matt.service.care.HLDailyRecordService;
import com.matt.service.care.HLFeedingRecordService;
import com.matt.service.care.po.HLDailyRecordPO;
import com.matt.service.care.po.HLFeedingRecordPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class HLFeedingRecordServiceImpl extends HLCareBaseServiceImpl<HLFeedingRecord, HLFeedingRecordRepository, HLFeedingRecordPO> implements HLFeedingRecordService {

	@Autowired
	@Override
	public void setBaseRepository(HLFeedingRecordRepository repository){
		super.setBaseRepository(repository);
	}

	@Autowired
	HLDailyRecordService hlDailyRecordService;
//	@Override
//	public void delete(String areaId, String staffId, String childId, String id) {
//		HLDailyRecord hlDailyRecord = hlDailyRecordService.get(areaId,staffId,childId,id);
//		hlDailyRecord.setFeedingStatus(null);
//		HLDailyRecordPO po = new HLDailyRecordPO();
//		CopyUtils.copyProperties(hlDailyRecord,po);
//		hlDailyRecordService.add(areaId,staffId,po);
//		super.delete(areaId, staffId, childId, id);
//	}
}
